package com.houmeiyuan.huiguniang.modles.domain;

import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Date;

@Component
public class ShopCar implements Serializable {
    private Integer id;
    private String openId;
    private Integer productId;
    private Integer selected; //购物车商品选中状态
    private Integer productNumber;//商品数量
    private String productName;
    private String productPrice;
    private Date updateTime;


    public ShopCar() {

    }

    public ShopCar(Integer id, String openId, Integer productId, Integer selected, Integer productNumber, String productName, String productPrice, Date updateTime) {
        this.id = id;
        this.openId = openId;
        this.productId = productId;
        this.selected = selected;
        this.productNumber = productNumber;
        this.productName = productName;
        this.productPrice = productPrice;
        this.updateTime = updateTime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public Integer getSelected() {
        return selected;
    }

    public void setSelected(Integer selected) {
        this.selected = selected;
    }

    public Integer getProductNumber() {
        return productNumber;
    }

    public void setProductNumber(Integer productNumber) {
        this.productNumber = productNumber;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getProductPrice() {
        return productPrice;
    }

    public void setProductPrice(String productPrice) {
        this.productPrice = productPrice;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}
